package com.study.opcua.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * plc的url地址
 */
@Component
@ConfigurationProperties(prefix = "localopc")
@Data
public class OpcParams {

    private Integer threadNum;

    private Long readTime;

    private List<Interfaces> interfaces;

    @Data
    public static class Interfaces{
        private String name;
        private String url;
        private List<Params> params;
    }

    @Data
    public static class Params{

        private String type;

        private String prefix;

        private String names;
    }
}
